<template>
  <div class="category">
    <div class="title">
      {{ name }}
    </div>
    <slot></slot>
  </div>
</template>

<script setup lang="ts">
defineProps({
  name: {
    type: String,
    required: true,
  },
});
</script>

<style scoped>
.category {
  background-color: skyblue;
  padding: 10px;
  border-radius: 5px;
  width: 200px;
  height: 300px;
}
.title {
  background-color: orange;
  text-align: center;
  color: white;
  font-size: 20px;
  font-weight: 100;
}
</style>
